// components/store-list/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    storeList: {
      type: Array,
      value: [],
    },
  },

  /**
   * 组件的初始数据
   */
  data: {},

  /**
   * 组件的方法列表
   */
  methods: {
    runStore(e) {
      const {item} = e.currentTarget.dataset
      wx.navigateTo({
        url: `/pages/store/index?shopId=${item.id}`,
      });
    },
    runGoodsDetail(e) {
      const {item} = e.currentTarget.dataset
      wx.navigateTo({
        url: `/pages/goods/details/index?goodsId=${item.id}`,
      });
    }
  },
});
